home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / netscape / net / CacheRequest.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.4 KB  |  76 lines

  1. package netscape.net;
  2.  
  3. import java.net.MalformedURLException;
  4. import java.net.URL;
  5.  
  6. public class CacheRequest {
  7.    public static final String LOCATION = "Location";
  8.    public static final String CONTENT_TYPE = "Content-type";
  9.    public static final String CONTENT_LENGTH = "Content-length";
  10.    public static final String LAST_MODIFIED = "Last-modified";
  11.    public static final String EXPIRES = "Expires";
  12.    String url;
  13.    String location;
  14.    String contentType;
  15.    String contentLength;
  16.    String lastModified;
  17.    String expires;
  18.    String mimeTypeHint;
  19.  
  20.    public CacheRequest(String var1) {
  21.       this.url = var1;
  22.    }
  23.  
  24.    public URL getURL() throws MalformedURLException {
  25.       return new URL(this.url);
  26.    }
  27.  
  28.    public String getLastModified() {
  29.       return this.lastModified;
  30.    }
  31.  
  32.    public String getLocation() {
  33.       return this.location;
  34.    }
  35.  
  36.    public String getContentType() {
  37.       return this.contentType;
  38.    }
  39.  
  40.    public String getContentLength() {
  41.       return this.contentLength;
  42.    }
  43.  
  44.    public String getExpires() {
  45.       return this.expires;
  46.    }
  47.  
  48.    public String getMimeTypeHint() {
  49.       return this.mimeTypeHint;
  50.    }
  51.  
  52.    public void setLastModified(String var1) {
  53.       this.lastModified = var1;
  54.    }
  55.  
  56.    public void setLocation(String var1) {
  57.       this.location = var1;
  58.    }
  59.  
  60.    public void setContentType(String var1) {
  61.       this.contentType = var1;
  62.    }
  63.  
  64.    public void setContentLength(String var1) {
  65.       this.contentLength = var1;
  66.    }
  67.  
  68.    public void setExpires(String var1) {
  69.       this.expires = var1;
  70.    }
  71.  
  72.    public void setMimeTypeHint(String var1) {
  73.       this.mimeTypeHint = var1;
  74.    }
  75. }
  76.